import { ComponentV2rayBasicSetting } from '@/models/components/v2ray/v2ray_basic_setting.ts'

export enum ComponentV2rayProxyMode {
    Router = 'Router',
    Global = 'Global',
    Manual = 'Manual',
}

export enum ComponentV2rayState {
    NotInstall = 'NotInstall',
    Installing = 'Installing',
    InstallFailed = 'InstallFailed',
    NotRunning = 'NotRunning',
    Running = 'Running',
    Failed = 'Failed',
}

export declare type ComponentV2rayInfo = {
    version: string
    state: ComponentV2rayState
    install_stage: string
    install_percent: number
    basic_setting: ComponentV2rayBasicSetting
}
